﻿<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
      <Schema Namespace="Хранилище Model" Provider="System.Data.SqlClient" ProviderManifestToken="2008" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
        <EntityType Name="AuthorizationStorageManager">
          <Key>
            <PropertyRef Name="account_ID" />
          </Key>
          <Property Name="account_ID" Type="tinyint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="login" Type="nvarchar" MaxLength="40" Nullable="false" />
          <Property Name="password" Type="nvarchar" MaxLength="20" Nullable="false" />
        </EntityType>
        <EntityType Name="ManufacturedMachines">
          <Key>
            <PropertyRef Name="machine_ID" />
          </Key>
          <Property Name="machine_ID" Type="tinyint" Nullable="false" />
          <Property Name="typeMachine_ID" Type="tinyint" Nullable="false" />
          <Property Name="nameMachine" Type="nvarchar" MaxLength="20" Nullable="false" />
          <Property Name="photo" Type="nvarchar" MaxLength="100" />
          <Property Name="makingDate" Type="nvarchar" MaxLength="20" Nullable="false" />
        </EntityType>
        <EntityType Name="TypeMachine">
          <Key>
            <PropertyRef Name="typeMachine_ID" />
          </Key>
          <Property Name="typeMachine_ID" Type="tinyint" Nullable="false" />
          <Property Name="name" Type="nvarchar" MaxLength="30" Nullable="false" />
        </EntityType>
        <Association Name="FK1_ManufacturedMachines">
          <End Role="TypeMachine" Type="Self.TypeMachine" Multiplicity="1">
            <OnDelete Action="Cascade" />
          </End>
          <End Role="ManufacturedMachines" Type="Self.ManufacturedMachines" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="TypeMachine">
              <PropertyRef Name="typeMachine_ID" />
            </Principal>
            <Dependent Role="ManufacturedMachines">
              <PropertyRef Name="typeMachine_ID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="Хранилище ModelContainer">
          <EntitySet Name="AuthorizationStorageManager" EntityType="Self.AuthorizationStorageManager" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="ManufacturedMachines" EntityType="Self.ManufacturedMachines" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="TypeMachine" EntityType="Self.TypeMachine" Schema="dbo" store:Type="Tables" />
          <AssociationSet Name="FK1_ManufacturedMachines" Association="Self.FK1_ManufacturedMachines">
            <End Role="TypeMachine" EntitySet="TypeMachine" />
            <End Role="ManufacturedMachines" EntitySet="ManufacturedMachines" />
          </AssociationSet>
        </EntityContainer>
      </Schema>
    </edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="Model" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
        <EntityType Name="AuthorizationStorageManager">
          <Key>
            <PropertyRef Name="account_ID" />
          </Key>
          <Property Name="account_ID" Type="Byte" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="login" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
          <Property Name="password" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
        </EntityType>
        <EntityType Name="ManufacturedMachines">
          <Key>
            <PropertyRef Name="machine_ID" />
          </Key>
          <Property Name="machine_ID" Type="Byte" Nullable="false" />
          <Property Name="typeMachine_ID" Type="Byte" Nullable="false" />
          <Property Name="nameMachine" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
          <Property Name="photo" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
          <Property Name="makingDate" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
          <NavigationProperty Name="TypeMachine" Relationship="Self.FK1_ManufacturedMachines" FromRole="ManufacturedMachines" ToRole="TypeMachine" />
        </EntityType>
        <EntityType Name="TypeMachine">
          <Key>
            <PropertyRef Name="typeMachine_ID" />
          </Key>
          <Property Name="typeMachine_ID" Type="Byte" Nullable="false" />
          <Property Name="name" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
          <NavigationProperty Name="ManufacturedMachines" Relationship="Self.FK1_ManufacturedMachines" FromRole="TypeMachine" ToRole="ManufacturedMachines" />
        </EntityType>
        <Association Name="FK1_ManufacturedMachines">
          <End Role="TypeMachine" Type="Self.TypeMachine" Multiplicity="1">
            <OnDelete Action="Cascade" />
          </End>
          <End Role="ManufacturedMachines" Type="Self.ManufacturedMachines" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="TypeMachine">
              <PropertyRef Name="typeMachine_ID" />
            </Principal>
            <Dependent Role="ManufacturedMachines">
              <PropertyRef Name="typeMachine_ID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="AuthorizationStorageManager" EntityType="Self.AuthorizationStorageManager" />
          <EntitySet Name="ManufacturedMachines" EntityType="Self.ManufacturedMachines" />
          <EntitySet Name="TypeMachine" EntityType="Self.TypeMachine" />
          <AssociationSet Name="FK1_ManufacturedMachines" Association="Self.FK1_ManufacturedMachines">
            <End Role="TypeMachine" EntitySet="TypeMachine" />
            <End Role="ManufacturedMachines" EntitySet="ManufacturedMachines" />
          </AssociationSet>
        </EntityContainer>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="Хранилище ModelContainer" CdmEntityContainer="Entities">
          <EntitySetMapping Name="AuthorizationStorageManager">
            <EntityTypeMapping TypeName="Model.AuthorizationStorageManager">
              <MappingFragment StoreEntitySet="AuthorizationStorageManager">
                <ScalarProperty Name="account_ID" ColumnName="account_ID" />
                <ScalarProperty Name="login" ColumnName="login" />
                <ScalarProperty Name="password" ColumnName="password" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ManufacturedMachines">
            <EntityTypeMapping TypeName="Model.ManufacturedMachines">
              <MappingFragment StoreEntitySet="ManufacturedMachines">
                <ScalarProperty Name="machine_ID" ColumnName="machine_ID" />
                <ScalarProperty Name="typeMachine_ID" ColumnName="typeMachine_ID" />
                <ScalarProperty Name="nameMachine" ColumnName="nameMachine" />
                <ScalarProperty Name="photo" ColumnName="photo" />
                <ScalarProperty Name="makingDate" ColumnName="makingDate" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="TypeMachine">
            <EntityTypeMapping TypeName="Model.TypeMachine">
              <MappingFragment StoreEntitySet="TypeMachine">
                <ScalarProperty Name="typeMachine_ID" ColumnName="typeMachine_ID" />
                <ScalarProperty Name="name" ColumnName="name" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
        </EntityContainerMapping>
      </Mapping>
    </edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="false" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
        <DesignerProperty Name="UseLegacyProvider" Value="true" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams></Diagrams>
  </Designer>
</edmx:Edmx>